home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / Tool Chest / Testing & Debugging / Virtual User / Virtual User Current Release / Examples / Example External Tools / ProcessTool / ProcessTool.vulib < prev    next >
Encoding:
Text File  |  1998-06-04  |  1.3 KB  |  36 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        ProcessTool.vulib
  3. #
  4. #    Contents:    ProcessTool interface.
  5. #
  6. #    Copyright © 1992 Apple Computer, Inc.  All rights reserved.
  7. #
  8. #    Note:        The TeachText file “ProcessTool ReadMe” explains the services that ProcessTool
  9. #                provides, and lists what each service takes as arguments and returns as results.
  10. #                (For the services common to all Virtual User external tools, see the Virtual
  11. #                User Language Reference manual.)  The script file “ProcessTool Sample.vu"
  12. #                provides a few simple examples in using the ProcessTool.
  13. #
  14.  
  15. tool ProcessTool s:'VUPT'
  16. begin
  17.     # Services specific to ProcessTool:
  18.     Service    "ProcessNamesList"() return 'list';
  19.     Service "FrontProcessName"() return 'string';
  20.     Service "PartitionSize"( 'string' ) return 'string';
  21.     Service "FreeMem"( 'string' ) return 'string';
  22.     Service "ReadByte"( 'undefined' ) return 'integer';
  23.     Service "ReadBlock"( 'undefined', 'integer' ) return 'list';
  24.  
  25.     # Services common to all Virtual User external tools:
  26.     Service "Initialize"( 'undefined' );        # pass TRUE for target, FALSE for host
  27.     Service "Cancel"( 'string' );
  28.     Service "GetToolServices"() return 'list';
  29.     Service "GetToolVersion"() return 'list';
  30.     Service "Poll"( 'string' ) return 'string';
  31.     Service "ServiceSupported"( 'string' ) return 'undefined';
  32.     Service "Quit"();
  33.     
  34. end;
  35.  
  36.